package com.bidevalution.business.vo;

import com.bidevalution.business.enums.StepReviewMsgTypeEnum;
import com.bidevalution.business.enums.StepReviewResultType;

public class StepReviewVo {
    private Integer resultType;
    private String msg;
    private String msgType;


    public StepReviewVo(StepReviewResultType resultType) {
        this(resultType, resultType.cnName, StepReviewMsgTypeEnum.Alert);
    }

    public StepReviewVo(StepReviewResultType resultType, String msg) {
        this(resultType, msg, StepReviewMsgTypeEnum.Alert);
    }

    public StepReviewVo(StepReviewResultType resultType, String msg, StepReviewMsgTypeEnum msgType) {
        this.resultType = resultType.code;
        this.msg = msg;
        this.msgType = msgType.name();
    }

    public Integer getResultType() {
        return resultType;
    }

    public void setResultType(Integer resultType) {
        this.resultType = resultType;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }
}
